package com.ruoyi.tb.lmt.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import java.util.List;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 检修类别对象 tb_workcategory
 *
 * @author ruoyi
 * @date 2023-11-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tb_workcategory")
public class TbWorkcategory extends BaseEntity {

    private static final long serialVersionUID=1L;

    /**
     * ID
     */
    @TableId(value = "ID")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;
    /**
     * 父节点
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long pid;
    /**
     * 车型
     */
    private String lmtType;
    /**
     * 顺序号
     */
    private String categoryCode;
    /**
     * 部件名称
     */
    private String workCategory;
    /**
     * 层级
     */
    private Long level;
    /**
     * id路径
     */
    private String idPath;
    /**
     * 代码路径
     */
    private String codePath;
    /**
     * name路径
     */
    private String namePath;
    /**
     * 备注
     */
    private String remark;

    @TableField(exist = false)
    private List<TbWorkcategory> children;
}
